#include  <stdio.h>

int main()
{
    int arr[4][5]={2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40};
    printf("二级指针\n");
    printf("arr     = %x\t", arr);
    printf("arr+1   = %x\t", arr+1);
    printf("arr+2   = %x\n", arr+2);
    printf("&arr[0] = %x\t", &arr[0]);
    printf("&arr[1] = %x\t", &arr[1]);
    printf("&arr[2] = %x\n", &arr[0]);
    printf("----------------------------------------------------------------\n");
    printf("一级指针\n");
    printf("*arr    = %x\t", *arr);
    printf("*arr+1  = %x\t", *arr+1);
    printf("*arr+2  = %x\n", *arr+2);
    printf("arr[0]  = %x\t", arr[0]);
    printf("arr[0]+1= %x\t", arr[0]+1);
    printf("arr[0]+2= %x\n", arr[0]+2);
    printf("----------------------------------------------------------------\n");
    printf("一级指针\n");
    printf("*(arr+1)  = %x\t", *(arr+1));
    printf("*(arr+1)+1= %x\t", *(arr+1)+1);
    printf("*(arr+1)+2= %x\n", *(arr+1)+2);
    printf("arr[1]    = %x\t", arr[1]);
    printf("arr[1]+1  = %x\t", arr[1]+1);
    printf("arr[1]+2  = %x\n", arr[1]+2);
    printf("----------------------------------------------------------------\n");
    printf("a[0][0]值\n");
    printf("arr[0][0]= %d\t", arr[0][0]);
    printf("*arr[0]  = %d\t", *arr[0]);
    printf("**arr    = %d\n", **arr);
    printf("----------------------------------------------------------------\n");
    printf("a[2][3]值\n");
    printf("arr[2][3]    = %d\t", arr[2][3]);
    printf("*(arr[2]+3)  = %d\t", *(arr[2]+3));
    printf("*(arr+2)[3]  = %d\n", *(arr+2)[3]);
    printf("*(*(arr+2)+3)= %d\n", *(*(arr+2)+3));
    return 0;
}